package com.brainydroid.datasend;

import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;

public class OnCurveNameItemSelectedListener implements OnItemSelectedListener {
	
	private static CryptoStore cryptostore;
	
	public OnCurveNameItemSelectedListener(CryptoStore cs) {
		cryptostore = cs;
	}
	
	public void onItemSelected(AdapterView<?> parent, View view, int pos,long id) {
		cryptostore.setCurveName(parent.getItemAtPosition(pos).toString());
	}
	 
	@Override
	public void onNothingSelected(AdapterView<?> arg0) {
		// Nothing
	}
}
